get Ping Type
Gets the type of beacon event.
This value is a bitmask. To determine the specific event type, perform a bitwise AND operation with the event type constants:
- EVENT_TYPE_ENTER (16) for an ENTER event.
- EVENT_TYPE_EXIT (32) for an EXIT event.
Example:
if ((beacon.getPingType() & Beacon.EVENT_TYPE_ENTER) == Beacon.EVENT_TYPE_ENTER) {
Log.d("BeaconEvent", "User entered beacon region.");
} else if ((beacon.getPingType() & Beacon.EVENT_TYPE_EXIT) == Beacon.EVENT_TYPE_EXIT) {
Log.d("BeaconEvent", "User exited beacon region.");
}
Content copied to clipboard
Return
An integer representing the bitmask for the ping type.